/**
 * Copyright (c) 2018
 * Author: fan.z
 */
package bm.sg.net.ssf;

import java.util.Arrays;
import java.util.List;

import org.junit.Test;

import com.alibaba.fastjson.JSONObject;

import bm.sg.net.ssf.util.FileUtil;

import com.alibaba.fastjson.JSON;

/**
 * <pre>
 * 类说明：
 * 
 * Modify Information:
 * Author         Date         Description
 * ============ =========== ============================
 * fan.z        2018-08-26    Create this file
 * </pre>
 * @category bm.sg.net.gt.ProxyConfig
 */
public class ProxyConfig {

	@Test
	public void gen() {
		String folder = "data/proxy/";
		String pxy_src = folder + "server.txt";
		String cfg_src = folder + "gen-config.json";
		String cfg_tgt = folder + "1.json";
		
		List<String> list = FileUtil.file2ListString(pxy_src);
		
		System.out.println(Arrays.toString(list.get(0).split("\\s+")));
		
		JSONObject cfg_json = JSON.parseObject(cfg_src);
		
		
	}
}
